<!DOCTYPE html>
<html lang="cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>SharpDoc文库后台管理主页</title>
    <link rel="stylesheet" th:href="@{/frame/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/customer_admin.css}" media="all">
</head>
<body class="layui-layout-body">
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:" layadmin-event="flexible" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:" layadmin-event="refresh" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:" layadmin-event="fullscreen">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <li class="layui-nav-item">
                    <img th:src="@{'/picture/getAvatar?fileName='+${session.current_administrator.avatar}}"
                         class="layui-circle" width="40px" height="auto">
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:">
                        <cite th:text="${session.current_administrator.nickname}"></cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a th:lay-href="@{/admin/setInfoPage}">基本资料</a></dd>
                        <dd><a th:lay-href="@{/admin/setPasswordPage}">修改密码</a></dd>
                        <hr>
                        <dd style="text-align: center;"><a th:href="@{/admin/logout}">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" th:lay-href="@{/document/admin/needCheckPage}">
                    <span>sharpdoc文库</span>
                </div>
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu"
                    lay-filter="layadmin-system-side-menu">
                    <li data-name="user" class="layui-nav-item">
                        <a href="javascript:" lay-tips="用户" lay-direction="2">
                            <i class="layui-icon layui-icon-user"></i>
                            <cite>用户</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd th:if="${session.current_administrator.role == '超级管理员'}"><a
                                    th:lay-href="@{/admin/manageAdministratorPage}">管理员列表</a></dd>
                            <dd><a th:lay-href="@{/customer/admin/manageCustomerPage}">用户列表</a></dd>
                        </dl>
                    </li>
                    <li data-name="doc" class="layui-nav-item">
                        <a href="javascript:" lay-tips="文档" lay-direction="2">
                            <i class="layui-icon layui-icon-form"></i>
                            <cite>文档</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a th:lay-href="@{/document/admin/needCheckPage}">待审核</a></dd>
                            <dd><a th:lay-href="@{/document/admin/passedPage}">已通过</a></dd>
                            <dd><a th:lay-href="@{/document/admin/failedPage}">未通过</a></dd>
                            <dd><a th:lay-href="@{/document/admin/forbiddenPage}">禁用</a></dd>
                        </dl>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/group/admin/setGroupPage}" lay-tips="分类设置"
                           lay-direction="2">
                            <i class="layui-icon layui-icon-templeate-1"></i>
                            <cite>分类设置</cite>
                        </a>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/icon/admin/setIconPage}" lay-tips="图标设置"
                           lay-direction="2">
                            <i class="layui-icon layui-icon-picture-fine"></i>
                            <cite>图标设置</cite>
                        </a>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/downloadHistory/admin/downloadHistoryPage}"
                           lay-tips="下载记录" lay-direction="2">
                            <i class="layui-icon layui-icon-download-circle"></i>
                            <cite>下载记录</cite>
                        </a>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/comment/admin/commentPage}" lay-tips="用户评论"
                           lay-direction="2">
                            <i class="layui-icon layui-icon-reply-fill"></i>
                            <cite>用户评论</cite>
                        </a>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/collect/admin/collectPage}" lay-tips="文档收藏"
                           lay-direction="2">
                            <i class="layui-icon layui-icon-rate-solid"></i>
                            <cite>文档收藏</cite>
                        </a>
                    </li>
                    <li data-name="banner" class="layui-nav-item">
                        <a href="javascript:" th:lay-href="@{/banner/admin/bannerPage}" lay-tips="轮播图"
                           lay-direction="2">
                            <i class="layui-icon layui-icon-carousel"></i>
                            <cite>轮播图</cite>
                        </a>
                    </li>
                    <li data-name="set" class="layui-nav-item">
                        <a href="javascript:" lay-tips="设置" lay-direction="2">
                            <i class="layui-icon layui-icon-set"></i>
                            <cite>设置</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="layui-nav-itemed">
                                <a href="javascript:">系统设置</a>
                                <dl class="layui-nav-child">
                                    <dd><a th:lay-href="@{/admin/setEmailPage}">邮件服务</a></dd>
                                </dl>
                            </dd>
                            <dd class="layui-nav-itemed">
                                <a href="javascript:">我的设置</a>
                                <dl class="layui-nav-child">
                                    <dd><a th:lay-href="@{/admin/setInfoPage}">基本资料</a></dd>
                                    <dd><a th:lay-href="@{/admin/setPasswordPage}">修改密码</a></dd>
                                </dl>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li th:lay-attr="@{/document/admin/needCheckPage}" class="layui-this">
                        <i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>
        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe th:src="@{/document/admin/needCheckPage}" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>
        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<script th:src="@{/frame/layui/layui.js}"></script>
<script>
    layui.config({
        base: '/frame/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use('index');
</script>
</body>
</html>